//
//  XKLLeftTableViewCell.m
//  GuiZiShouDuanZi
//
//  Created by xmg on 16/4/25.
//  Copyright © 2016年 xiao_kl. All rights reserved.
//

#import "XKLLeftTableViewCell.h"

@interface XKLLeftTableViewCell()

@property (weak, nonatomic) IBOutlet UIView *seletRedView;


@end
@implementation XKLLeftTableViewCell

- (void)awakeFromNib {
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

//    NSLog(@"%d",selected);
    self.seletRedView.hidden=!selected;
    self.textLabel.textColor=selected ? [UIColor redColor] : [UIColor blackColor];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.textLabel.y=2;
    self.textLabel.height=self.height-self.textLabel.y * 2;
    
}
@end
